using Client;
using Count;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using System;

var host = Host.CreateDefaultBuilder(args)
    .ConfigureServices((hostContext, services) =>
    {
        services.AddHostedService<Worker>();
        services.AddGrpcClient<Counter.CounterClient>(options =>
        {
            options.Address = new Uri("https://localhost:5001");
        });
    })
    .Build();

host.Run();
